<style>    
    #testFileInput2{
        height: 30px; width: 102px; margin-left: 128px;
    }
    #preview1, #topPhpto
        {  
            width:150px;  
            padding-left: 65px;padding-top: 15px; border-top-width: 5px;
            //height:150px;  
        }
</style>
<div class="pageContent">	
    <form method="post" action="__CONTROLLER__/edit?callbackType=closeCurrent" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <input type="hidden"  id='hidden'  name='id' value="<{$buyInfo.id}>"/>
        <input type="hidden" name="publisherIcon" value="<{$buyInfo.publishericon}>" id="icon">
        <div class="pageFormContent" layoutH="58">
            <div class="unit">
                <label>供应商品：</label>
                <input type="text" name="title" size="15"  value="<{$buyInfo.title}>" class='required' />
            </div>
            <div class="unit">
                <label>内容：</label>
                <textarea name="content" cols="12" rows="4"><{$buyInfo.content}></textarea>
            </div>
            <neq name="buyInfo['publishername']" value="">
                <div class="unit" id='control'>
                    <label>公司名称：</label>
                    <input type="text"  name="publisherName" size="15" value="<{$buyInfo.publishername}>" class=""/>
                </div>
            <else/>
                <div class="unit" id='control'>
                    <label>公司名称：</label>
                    <input type="text"  name="publisherName" size="15" value="<{$Think.session.companyName}>" class=""/>
                </div>
            </neq>
            <neq name="buyInfo['introduction']" value="">
                <div class="unit" id='control'>
                    <label>公司简介：</label>
                    <input type="text"  name="introduction" size="15" value="<{$buyInfo.introduction}>" class=""/>
                </div>
            <else/>
                <div class="unit" id='control'>
                    <label>公司简介：</label>
                    <input type="text"  name="introduction" size="15" value="<{$Think.session.addroduction}>" class=""/>
                </div>
            </neq>
            <neq name="buyInfo['publishertel']" value="">
                <div class="unit" id='control'>
                    <label>电话：</label>
                    <input type="text"  name="publisherTel" size="15" value="<{$buyInfo.publishertel}>" class="phone"/>
                </div>
            <else/>
                <div class="unit" id='control'>
                    <label>电话：</label>
                    <input type="text"  name="publisherTel" size="15" value="<{$Think.session.tel}>" class="phone"/>
                </div>
            </neq>            
            <div class="unit" id='control'>
                <label>地址：</label>
                <input type="text"  name="publisherAddr" size="15" value="<{$buyInfo.publisheraddr}>" class='required'/>
            </div> 
            <neq name="buyInfo['publisherweb']" value="">            
                <div class="unit" id='control'>
                    <label>网址：</label>
                    <input type="text"  name="publisherWeb" size="15" value="<{$buyInfo.publisherweb}>" class=""/>
                </div>
            <else/>
                <div class="unit" id='control'>
                    <label>网址：</label>
                    <input type="text"  name="publisherWeb" size="15" value="<{$Think.session.websit}>" class=""/>
                </div>
            </neq>
            <div id="preview1" href="">
                <neq name="buyInfo['publishericon']" value="">
                    <img src="<{$Think.const.PUBLIC_URL}>upload/<{$buyInfo.publishericon}>" id='topPhpto'/>
                <else/>
                    <img src="<{$Think.const.PUBLIC_URL}>upload/<{$Think.session.icon}>" id='topPhpto'/>
                </neq>
            </div>
            <div class="unit">
                <label>LOGO：</label>  
                <input id="testFileInput2" type="file" name="icon"                                        
                    uploaderOption="{
			swf:'<{$Think.const.DWZ_URL}>uploadify/scripts/uploadify.swf',
			uploader:'__CONTROLLER__/upsupply',
                        formData:{authId:<?php echo $_SESSION['authId'];?>, ajax:1},
			buttonText:'请选择文件',
			fileSizeLimit:'20000KB',
			fileTypeDesc:'*.jpg;*.jpeg;*.gif;*.png;',
			fileTypeExts:'*.jpg;*.jpeg;*.gif;*.png;',
			auto:true,
                        onUploadSuccess:function(file,data,respore){
                            $('#topPhpto').attr('src','<{$Think.const.PUBLIC_URL}>'+'upload/'+data);
                            $('#icon').val(data);
                        }
                    }"
                />
            </div>
            <div class="unit">
                <label>地区：</label>
                <select class="combox" name="province" ref="w_combox_city" refUrl="__MODULE__/Area/ajaxShowCity/id/{value}">
                    <option value="">所在省</option>
                    <foreach name="provinceData" item="item" >
                        <option <eq name="areaInfo['province']" value="$item['province']">selected</eq> value="<{$item.id}>"><{$item.province}></option>
                    </foreach>
                </select>
                <select class="combox" name="city" id="w_combox_city" ref="w_combox_region" refUrl="__MODULE__/Area/ajaxShowArea/id/{value}">
                    <option value="">所在城市</option>
                    <neq name='cityData' value=''>
                        <foreach name="cityData" item="item" >
                            <option value="<{$item.id}>" <eq name="areaInfo['city']" value="$item['city']">selected</eq>><{$item.city}></option>
                        </foreach>
                    </neq>
                </select>
            </div>
            <gt name="Think.session.type" value="1">
                <neq name="buyInfo['id']" value=''>
                    <div class="unit">
                        <label style="width: 108px;">是否置顶：</label>
                        <label style="width: 38px;"><input type="radio" name="top" value="1" />是</label>
                        <label><input type="radio" name="top" value='0' checked/>否</label> 
                    </div>
                </neq>
            </gt>
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
            </ul>
        </div>
    </form>	
</div>
